/**
 * 封装图表的请求数据接口
 */
import req from '@/utils/request'


// 获取首页的数据统计
export function getTotalData() {
  return req.get('/order/totaldata')
}

// 获取订单报表
export function getOrderTotalData(params) {
  return req.get('/order/ordertotal', params)
}

// 获取订单列表
export function getOrderList(params) {
  return req.get('/order/list', params)
}

// 订单查询
export function getOrderSearch(params) {
  return req.get('/order/search', params)
}

// 订单详情
export function getOrderDetail(params) {
  return req.get('/order/detail', params)
}

// 修改订单
export function getOrderEdit(params) {
  return req.post('/order/edit', params)
}